#include <cstdio>
#include <cstring>

char str[10005];

int main()
{
    while(scanf("%s", str) != EOF) {}

    printf("%d\n", strlen(str));

    return 0;
}
